<template>
  <div id="app">
    <my-header/>
    <navbar/>
    <keep-alive>
      <!-- 添加组件数据到缓存中，避免重新发起请求，优化用户体验 -->
    <router-view></router-view>
    </keep-alive>
    <player></player>

  </div>
</template>

<script>
import MyHeader from './components/header/header.vue'
import Navbar from './components/nav/nav.vue'
import Player from './components/player/player.vue'
export default {
  components: {
    MyHeader,
    Navbar,
    Player
  }
}
</script>

<style lang="scss" >

</style>
